package be.dch.objectprops.formatter;

public class IntegerPrimitiveFormatter extends IntegerFormatter {

    @SuppressWarnings("rawtypes")
    
    public Class getFormatterClass() {
	return int.class;
    }

    
    public Object parse(final String input) {
	if ((input == null) || (input.length() == 0)) {
	    return Integer.valueOf(0);
	}
	return super.parse(input);
    }

}
